<#macro content recomColumnId>
<div class="recommend-box">
	<h3>推荐</h3>
	<#list getRecommendList(siteId,(preview == 'Preview')?then('1','0'),recomColumnId) as recomContents>
		<#if recomContents_index gt 4>
			<#assign style=""/>
		<#elseif recomContents_index == 0>
		    <#assign style="background-color:red;"/>
        <#elseif recomContents_index == 1>
		    <#assign style="background-color:orange;"/>
        <#elseif recomContents_index == 2>
		    <#assign style="background-color:green;"/>
        <#elseif recomContents_index == 3>
		    <#assign style="background-color:blue;"/>
        <#elseif recomContents_index == 4>
		    <#assign style="background-color:violet;"/>
		<#else>
			<#assign style=""/>
		</#if>
		<a href="${ctxFrt}/${siteId}/view${preview}-${recomContents.columnId}-${recomContents.id}${urlSuffix}">
			<span class="badge" style="${style}">${recomContents_index + 1}</span>
			${recomContents.title}
		</a>
	</#list>
</div>
</#macro>
